//入口文件

//react必要的两个包
import React from 'react';
import ReactDOM from 'react-dom/client';
//引入App组件
import App from './App';
//引入router
import router from './router';
import {
  RouterProvider
} from 'react-router-dom'



//把App根组件渲染到id为root的dom节点上
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
// 3.注入router实例

<RouterProvider router={router}></RouterProvider>

);

